﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Dominios.aspx.cs" Inherits="CuentasWeb.Cuentas.Dominios" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <asp:GridView ID="gvDominios" runat="server" AllowPaging="True" 
        BackColor="#DEBA84" BorderColor="#DEBA84" BorderStyle="None" BorderWidth="1px" 
        CellPadding="3" CellSpacing="2" DataSourceID="odsDominios" Width="100%" AutoGenerateColumns="false" DataKeyNames="IdDominio" PageSize="100">
        <Columns>
            <asp:CommandField ShowDeleteButton="True" ShowEditButton="True" ShowSelectButton="True" ItemStyle-Width="100px" />
            <asp:BoundField DataField="Dominio" HeaderText="Dominio" ItemStyle-HorizontalAlign="Center" />
        </Columns>
        <FooterStyle BackColor="#F7DFB5" ForeColor="#8C4510" />
        <HeaderStyle BackColor="#A55129" Font-Bold="True" ForeColor="White" />
        <PagerStyle ForeColor="#8C4510" HorizontalAlign="Center" />
        <RowStyle BackColor="#FFF7E7" ForeColor="#8C4510" />
        <SelectedRowStyle BackColor="#738A9C" Font-Bold="True" ForeColor="White" />
        <SortedAscendingCellStyle BackColor="#FFF1D4" />
        <SortedAscendingHeaderStyle BackColor="#B95C30" />
        <SortedDescendingCellStyle BackColor="#F1E5CE" />
        <SortedDescendingHeaderStyle BackColor="#93451F" />
    </asp:GridView>
    <asp:ObjectDataSource ID="odsDominios" runat="server" 
        DataObjectTypeName="BLLCuentasWeb.CW_Dominio" DeleteMethod="EliminarDominio" 
        InsertMethod="CargarNuevoDominio" SelectMethod="TraerDominios" 
        TypeName="CuentasWeb.Clases.CajaFuerte" UpdateMethod="ModificarDominio"></asp:ObjectDataSource>
    <div>
        <asp:Label ID="lblDominio" runat="server" Text="Dominio:" />
        <asp:TextBox ID="txtDominio" runat="server" />
        <asp:Button ID="btnGuardarNuevoDominio" runat="server" Text="Guardar" 
            onclick="btnGuardarNuevoDominio_Click" />
    </div>
</asp:Content>
